<?php

class Admin_model extends CI_Model{
	private $table_name='admin';
	
	public function getOne($user,$pass){
		$array = array('username' =>$user,'password' =>$pass);
		$query = $this->db->where($array)->get($this->table_name);//拿到视图界面的id，然后通过id进行单独的操作
        return $query->row();
	}
}